package com.food.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.LinkedList;
import java.util.List;

/**
 * @author : 港某
 * @date : 2021/3/31 16:32
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Sun {

    private String name;
    private Double value;
    private List<Sun> children = new LinkedList<>();

    public Sun(String name) {
        this.name = name;
    }

    public Sun(String name, Double value) {
        this.name = name;
        this.value = value;
    }

}
